package com.mingqijia.gassafety.webserver.response;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class OperateRecordResponse {

    @ApiModelProperty(value = "操作类型code")
    private Integer operateType;

    @ApiModelProperty(value = "操作类型名称")
    private String operateTypeName;

    @ApiModelProperty(value = "菜单")
    @TableField("menu")
    private String menu;

    @ApiModelProperty(value = "操作详情")
    private String detail;

    @ApiModelProperty(value = "操作人")
    private String operator;

    @ApiModelProperty(value = "操作人code")
    private String operatorCode;

    @ApiModelProperty(value = "通用信息")
    private String commonInfo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "操作时间")
    private Date createdAt;

    @ApiModelProperty(value = "操作结果 0-失败 1-成功 2-部分成功")
    private Integer operateResultCode;

    @ApiModelProperty(value = "策略规则类型")
    private String strategyType;

    @ApiModelProperty(value = "操作结果 0-失败 1-成功")
    private String operateResult;
}
